package com.ffcs.test.mysql.service;

import com.ffcs.test.feign.TestFeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author 天真热
 * @create 2024-01-23 21:37
 * name：指定rest所在的服务名称
 * contextId: 调用服务标识（不设置，当出现重复使用相同name时，会报错）
 * path：指定rest所在的controller对应的RequestMapping
 * fallback：降级类
 * @desc
 **/
@FeignClient(name = "zzk-query", contextId = "UserFeignService", path = "/mybatis" )
public interface UserFeignService {
    @RequestMapping("/save")
    public String save(@RequestParam("name") String name);


}
